
#ifndef __SINGLETON_HPP__
#define __SINGLETON_HPP__

template <class T>
class singleton
{
public:
	static T& instance()
	{
		//Add lock here for multi-thread env.
		static T instance;
		return instance;
	}

};

#endif //__SINGLETON_HPP__
